import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    cityC: '北京',
    gallery: false
  },
  mutations: {
    cityname (state, city) {
      state.cityC = city
    },
    isnone (state, blick) {
      state.gallery = blick
    }
  },
  actions: {
    citname (ctx, city) {
      ctx.commit('cityname', city)
    },
    isture (ctx, blick) {
      ctx.commit('isnone', blick)
    }
  }
})
